/**
 *	@file	realsvr.h
 *
 *	@brief	the real server structure and APIs
 *	
 *	@author	Forrest.zhang
 *
 *	@date	2014-02-26
 */

#ifndef FZ_REALSVR_H
#define FZ_REALSVR_H

enum rs_state {
	RS_DOWN,
	RS_UP,
	RS_,
	RS_
}

/**
 *	The connection pool to realserver.
 */
typedef struct connpool {

} connpool_t;

typedef struct realsvr {
	ip_port_t	addr;
	int		weight;
	int		state;
} realsvr_t;

typedef struct svrfarm_t {
	realsvr_t	*svrs;
	int		nsvr;
	
} svrfarm_t;

extern int 
sf_add_rs();


extern int 
sf_del_rs();


extern int 
sf_get_rs();

extern int 
sf_

#endif /* end of FZ_REALSVR_H  */


